package com.bo.baby2.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
* @program: baby2_p2p
*
* @description: ${description}
*
* @author:波
*
* @create: 2020-07-14 21:18
**/


/**
    * 还款计划表
    */
@ApiModel(value="com-bo-baby2-entity-TRepayment")
public class TRepayment implements Serializable {
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private String id;

    /**
    * 借款id
    */
    @ApiModelProperty(value="借款id")
    private String borrowId;

    /**
    * 借款人id
    */
    @ApiModelProperty(value="借款人id")
    private String borrowUserId;

    /**
    * 借款标题
    */
    @ApiModelProperty(value="借款标题")
    private String borrowTitle;

    /**
    * 截止日期
    */
    @ApiModelProperty(value="截止日期")
    private LocalDateTime deadline;

    /**
    * 还款日期
    */
    @ApiModelProperty(value="还款日期")
    private LocalDateTime repaymentTime;

    /**
    * 本期还款总金额(单位：分)
    */
    @ApiModelProperty(value="本期还款总金额(单位：分)")
    private Long totalAmount;

    /**
    * 本期还款本金(单位：分)
    */
    @ApiModelProperty(value="本期还款本金(单位：分)")
    private Double principal;

    /**
    * 本期还款总利息(单位：分)
    */
    @ApiModelProperty(value="本期还款总利息(单位：分)")
    private Double interest;

    /**
    * 还款期数(第几期)
    */
    @ApiModelProperty(value="还款期数(第几期)")
    private Integer period;

    /**
    * 还款状态(逾期--1，待还--2，已还--3，逾期已还--4)
    */
    @ApiModelProperty(value="还款状态(逾期--1，待还--2，已还--3，逾期已还--4)")
    private Integer state;

    /**
    * 借款类型
    */
    @ApiModelProperty(value="借款类型")
    private Integer borrowType;

    /**
    * 还款方式
    */
    @ApiModelProperty(value="还款方式")
    private Integer repaymentType;

    /**
    * 创建时间
    */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }

    public String getBorrowUserId() {
        return borrowUserId;
    }

    public void setBorrowUserId(String borrowUserId) {
        this.borrowUserId = borrowUserId;
    }

    public String getBorrowTitle() {
        return borrowTitle;
    }

    public void setBorrowTitle(String borrowTitle) {
        this.borrowTitle = borrowTitle;
    }

    public LocalDateTime getDeadline() {
        return deadline;
    }

    public void setDeadline(LocalDateTime deadline) {
        this.deadline = deadline;
    }

    public LocalDateTime getRepaymentTime() {
        return repaymentTime;
    }

    public void setRepaymentTime(LocalDateTime repaymentTime) {
        this.repaymentTime = repaymentTime;
    }

    public Long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Double getPrincipal() {
        return principal;
    }

    public void setPrincipal(Double principal) {
        this.principal = principal;
    }

    public Double getInterest() {
        return interest;
    }

    public void setInterest(Double interest) {
        this.interest = interest;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getBorrowType() {
        return borrowType;
    }

    public void setBorrowType(Integer borrowType) {
        this.borrowType = borrowType;
    }

    public Integer getRepaymentType() {
        return repaymentType;
    }

    public void setRepaymentType(Integer repaymentType) {
        this.repaymentType = repaymentType;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", borrowId=").append(borrowId);
        sb.append(", borrowUserId=").append(borrowUserId);
        sb.append(", borrowTitle=").append(borrowTitle);
        sb.append(", deadline=").append(deadline);
        sb.append(", repaymentTime=").append(repaymentTime);
        sb.append(", totalAmount=").append(totalAmount);
        sb.append(", principal=").append(principal);
        sb.append(", interest=").append(interest);
        sb.append(", period=").append(period);
        sb.append(", state=").append(state);
        sb.append(", borrowType=").append(borrowType);
        sb.append(", repaymentType=").append(repaymentType);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}
